<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      rpcbind-1.2.5
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;15.&nbsp;Networking Programs
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="ntp.html" title="ntp-4.2.8p13">Prev</a>
          <p>
            ntp-4.2.8p13
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="rsync.html" title="rsync-3.1.3">Next</a>
          <p>
            rsync-3.1.3
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netprogs.html" title=
          "Chapter&nbsp;15.&nbsp;Networking Programs">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="rpcbind" name="rpcbind"></a>rpcbind-1.2.5
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to rpcbind
        </h2>
        <p>
          The <span class="application">rpcbind</span> program is a
          replacement for <span class="application">portmap</span>. It is
          required for import or export of Network File System (NFS) shared
          directories.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/rpcbind/rpcbind-1.2.5.tar.bz2">
                https://downloads.sourceforge.net/rpcbind/rpcbind-1.2.5.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: ed46f09b9c0fa2d49015f6431bc5ea7b
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 124 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 1.7 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Required patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/9.1/rpcbind-1.2.5-vulnerability_fixes-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/9.1/rpcbind-1.2.5-vulnerability_fixes-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <h3>
          rpcbind Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="libtirpc.html" title=
          "libtirpc-1.2.5">libtirpc-1.2.5</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/rpcbind">http://wiki.linuxfromscratch.org/blfs/wiki/rpcbind</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of rpcbind
        </h2>
        <p>
          In order to get <span class="application">rpcbind</span> to work
          properly, first fix the package to use correct service name:
        </p>
        <pre class="userinput">
<kbd class="command">sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c</kbd>
</pre>
        <p>
          Install <span class="application">rpcbind</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">patch -Np1 -i ../rpcbind-1.2.5-vulnerability_fixes-1.patch &amp;&amp;

./configure --prefix=/usr                                  \
            --bindir=/sbin                                 \
            --sbindir=/sbin                                \
            --with-rpcuser=root                            \
            --enable-warmstarts                            \
            --without-systemdsystemunitdir                 &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>--with-rpcuser=root</strong></span>:
          This works around an error in the configure script.
        </p>
        <p>
          <span class=
          "command"><strong>--without-systemdsystemunitdir</strong></span>:
          This version of BLFS does not support systemd.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring rpcbind
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="rpcbind-init" name="rpcbind-init"></a>
          </h3>
          <h4 class="title">
            <a id="rpcbind-init" name="rpcbind-init"></a><span class=
            "phrase">Boot Script</span>
          </h4>
          <p>
            Install the <span class="phrase"><code class=
            "filename">/etc/rc.d/init.d/rpcbind</code> init script</span>
            included in the <a class="xref" href=
            "../introduction/bootscripts.html" title=
            "BLFS Boot Scripts">blfs-bootscripts-20191204</a> package.
          </p>
          <pre class="root">
<kbd class="command">make install-rpcbind</kbd>
</pre>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">rpcbind and rpcinfo</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">None</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="rpcbind-prog" name="rpcbind-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>rpcbind</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a server that converts RPC program numbers into
                    universal addresses. It must be running on the host to be
                    able to make RPC calls on a server on that machine.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="rpcinfo" name="rpcinfo"></a><span class=
                    "term"><span class=
                    "command"><strong>rpcinfo</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    makes an RPC call to an RPC server and reports data
                    according to the requested options.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-15 08:54:30 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="ntp.html" title="ntp-4.2.8p13">Prev</a>
          <p>
            ntp-4.2.8p13
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="rsync.html" title="rsync-3.1.3">Next</a>
          <p>
            rsync-3.1.3
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netprogs.html" title=
          "Chapter&nbsp;15.&nbsp;Networking Programs">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
